package com.core.controller;

import com.core.common.CommentResult;
import com.core.service.IUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * create by yongli on 2021-09-23 15:32
 */

@RestController
@RequestMapping("/user")
public class UserController {
    @Autowired
    IUserService userService;

    @RequestMapping("test")
    public CommentResult<String> test() {
        CommentResult<String> ret = new CommentResult<>();
        ret.setData("there is no users in the system");
        ret.setSatus(true);
        ret.setMsg("用户不存在");
        return ret;
    }

    @GetMapping("info")
    public CommentResult<String> info() {
        CommentResult<String> ret = new CommentResult<>();
        ret.setData("there is no users in the system");
        ret.setSatus(true);
        ret.setMsg("用户不存在");
        return ret;
    }


}
